package com.xh.xyzp.domain.vo;

import com.xh.xyzp.exception.ApiException;
import lombok.Data;

import java.util.Objects;

@Data
public class DeliverSubmitReq {
    private Long id;
    private Long jobId;
    private Integer deliverStatus;

    public void checkParams() {
        if (Objects.nonNull(id)) {
            return;
        }
        if (jobId == null) {
            throw new ApiException("职位ID不能为空");
        }
    }
} 